<script>
	export default {
		onLaunch() {
			wx.showShareMenu({
				withShareTicket: true,
				//设置下方的Menus菜单，才能够让发送给朋友与分享到朋友圈两个按钮可以点击
				menus: ["shareAppMessage", "shareTimeline"]
			})
			/* const access_token = uni.getStorageSync("access_token")

			if (!access_token) {
				uni.navigateTo({
					url: `/sub-mine/login/index`
				})
			} */
		},
		onLoad() {},
		onHide: function() {}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import "common/css/flex.scss";
	@import "common/css/common.css";
	@import "common/iconfont/iconfont.css";

	page {
		height: 100%;
	}
</style>